﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace MINERP.BLL.CustomerManage
{
    public class DisposePhotoBLL
    {
        //参数
        private DAL.CustomerManage.DisposePhotoDAL dal = new MINERP.DAL.CustomerManage.DisposePhotoDAL();


         #region 员工的理件路径
        /// <summary>
        /// 员工的理件路径
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public string GetUserDisposePhotoPath(int userId)
        {
            try
            {
                return dal.GetUserDisposePhotoPath(userId);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion

        #region 获得所有有效的商户
        /// <summary>
        /// 获得所有有效的商户
        /// </summary>
        /// <returns></returns>
        public DataTable GetShops()
        {
            try
            {
                DataTable dt = dal.GetShops();
                return dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion

        #region 获取所有有效的员工
        /// <summary>
        /// 获取所有有效的员工
        /// </summary>
        /// <returns></returns>
        public DataTable GetUsers()
        {
            try
            {
                return dal.GetUsers();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion

        #region 修改员工的理件路径
        /// <summary>
        /// 修改员工的理件路径
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="path"></param>
        public void UpdateUserDisposePath(int userId, string path)
        {
            try
            {
                dal.UpdateUserDisposePath(userId, path);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion
        public DataTable GetUser(int inUser)
        {
            return dal.GetUsers(inUser);
        }

        //-------------数据结构--------------
        /// <summary>
        /// 商户结构
        /// </summary>
        public class ShopCL
        {
            public int ShopId;
            public string ShopName;
            public string ZJCode;
        }
    }
}
